Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

273
Visualizações
React JSDoc functional component - I am getting the "inner" key when I document a component

When genereting the JSDoc of this component, I am getting the key "inner" next to my component definition. What does it mean? How can I remove it?

Methods

(inner) ActivityItemContainer() → {React.ReactElement}

This is my code:

/**
 * Properties received by the ActivityItemContainer component
 *
 * @typedef {object} ActivityItemContainerProps
 * @property {object} props - The ActivityItemContainer properties
 * @property {React.ReactElement} [props.children] - The ActivityItemContainer's children
 * @property {string} [props.icon] - The ActivityItemContainer's icon
 * @property {string} props.date - The ActivityItemContainer's date
 * @property {string} [props.backgroundColor] - The ActivityItemContainer's backgroundColor
 */

/**
 * Component for containing the user activity
 * with some design tweaks.
 *
 * @public
 * @type {React.FC<ActivityItemContainerProps>}
 * @returns {React.ReactElement} A fancy container
 * @example
 * const icon = {
 *   name: "ios-flash",
 *   type: "ionicon",
 *   size: 25,
 *   color: "#FF8100"
 * };
 *
 * const date = "3 hours ago";
 *
 * return (
 *   <ActivityItemContainer icon={icon} date={date}>
 *     ...
 *   </ActivityItemContainer>
 * );
 * @version 1.0.0
 * @since 1.0.0
 */
function ActivityItemContainer({
  icon,
  date,
  backgroundColor,
  children,
}) { ... }

Also, the following function is giving the same result to me:

/**
 * @private
 * @function areActivityItemContainerPropsEqual
 * @param {object} prevProps Previous component's props
 * @param {object} nextProps Next component's props
 * @returns {boolean} Returns true if the component's date remains intact between renders. Otherwise, it returns false.
 * @version 1.0.0
 * @since 1.0.0
 */
function areActivityItemContainerPropsEqual(prevProps, nextProps) {
  return prevProps.date === nextProps.date;
}

(private, inner) areActivityItemContainerPropsEqual(prevProps, nextProps) → {boolean}

Note: This is my file header:

/**
 * @author ...
 * @file Container for activity items.
 * @copyright ...
 * @license MIT
 * @module components/Activity
 * @exports {React.FC<ActivityItemContainerProps>} ActivityItemContainer
 */
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda